package com.fire.user.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 登录记录表
 * </p>
 *
 * @author raoyuxing123
 * @since 2018-08-17
 */
@TableName("t_mit_record_login")
public class TMitRecordLogin extends Model<TMitRecordLogin> {

    private static final long serialVersionUID = 1L;

    /**
     * seq
     */
    @TableId(value = "loginseq", type = IdType.AUTO)
    private Integer loginseq;
    /**
     * 创建时间
     */
    private Date createtime;
    /**
     * 发送模块，业务自定义
     */
    private String who;
    /**
     * 用户号
     */
    private String userid;
    /**
     * 渠道号
     */
    private Integer chanelid;
    /**
     * 渠道名称
     */
    private String chanelname;
    /**
     * 发送手机
     */
    private String phone;
    /**
     * 登录时间
     */
    private Date logintime;
    /**
     * 0,页面登录，1 微信登录
     */
    private String logintype;
    /**
     * 0 logout登出，1 登录 login，2,：注册
     */
    private Integer way;
    /**
     * 来源类型(1 渠道，2活动，3 营销活动  4 订单，5 admin平台,6 业务)
     */
    private Integer resourcetype;
    /**
     * 渠道号， 活动号，营销活动号，订单号，操作号,业务编码（sc）
     */
    private String resourceid;
    /**
     * 额外字段，当resourcetype=6的时候，记录turl
     */
    private String extral;


    public Integer getLoginseq() {
        return loginseq;
    }

    public void setLoginseq(Integer loginseq) {
        this.loginseq = loginseq;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getWho() {
        return who;
    }

    public void setWho(String who) {
        this.who = who;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public Integer getChanelid() {
        return chanelid;
    }

    public void setChanelid(Integer chanelid) {
        this.chanelid = chanelid;
    }

    public String getChanelname() {
        return chanelname;
    }

    public void setChanelname(String chanelname) {
        this.chanelname = chanelname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getLogintime() {
        return logintime;
    }

    public void setLogintime(Date logintime) {
        this.logintime = logintime;
    }

    public String getLogintype() {
        return logintype;
    }

    public void setLogintype(String logintype) {
        this.logintype = logintype;
    }

    public Integer getWay() {
        return way;
    }

    public void setWay(Integer way) {
        this.way = way;
    }

    public Integer getResourcetype() {
        return resourcetype;
    }

    public void setResourcetype(Integer resourcetype) {
        this.resourcetype = resourcetype;
    }

    public String getResourceid() {
        return resourceid;
    }

    public void setResourceid(String resourceid) {
        this.resourceid = resourceid;
    }

    public String getExtral() {
        return extral;
    }

    public void setExtral(String extral) {
        this.extral = extral;
    }

    @Override
    protected Serializable pkVal() {
        return this.loginseq;
    }

    @Override
    public String toString() {
        return "TMitRecordLogin{" +
        "loginseq=" + loginseq +
        ", createtime=" + createtime +
        ", who=" + who +
        ", userid=" + userid +
        ", chanelid=" + chanelid +
        ", chanelname=" + chanelname +
        ", phone=" + phone +
        ", logintime=" + logintime +
        ", logintype=" + logintype +
        ", way=" + way +
        ", resourcetype=" + resourcetype +
        ", resourceid=" + resourceid +
        ", extral=" + extral +
        "}";
    }
}
